<html><head><style>
* {font-size:12px;}
table {border: 0;border-bottom: 1px solid #000;padding:0;margin:0;}
th {border-bottom: 1px solid #000;text-align:left;}
th, td {padding: 3px 15px;}
pre {line-height: 14px;}
</style></head><body>
<pre>
Dear <?=$order->firstname?> <?=$order->lastname?>,

Thanks for shopping at nanhai.com. Your order number is <?=$order->id?>. 
Here's a summary of the order you placed on <?=substr($order->updated_at, 0, 10)?>:
 
Billing Address:
<?=$order->billing_address_1?>
	
<?=$order->billing_address_2?>
	
<?=$order->billing_city?>, <?=$order->billing_zone?> <?=$order->billing_zip_code?>


Shipping Address:
<?=$order->shipping_address_1?>
	
<?=$order->shipping_address_2?>
	
<?=$order->shipping_city?>, <?=$order->shipping_zone?> <?=$order->shipping_zip_code?>

</pre>
<table><tr>
	<th>Qty</th><th>Name</th><th>ISBN</th><th>Each</th><th>Subtotal</th>
</tr><?php foreach($items as $item) { ?><tr>
	<td><?=$item->product_quantity?></td>
	<td><?=$item->title_en?></td>
	<td><?=$item->sku?></td>
	<td align="right">$<?=$item->product_price?></td>
	<td align="right">$<?=$item->product_subtotal?></td>
</tr><?php } ?></table>
<pre>
<?php if($order->customer_discount != 0) { ?>
	Discount: <?=$order->customer_discount*100?>%
	
<?php } ?>
Subtotal: $<?=$order->amount?>

<?php if($order->sales_tax != 0) { ?>
Sales Tax(<?=Config::item('bookstore.sales_tax')*100?>%): $<?=$order->sales_tax?>
	
<?php } ?>
Shipping: $<?=$order->shipping_fare?>
	
Total: $<?=$order->total?>
	
 
Payment type: <?=$order->payment_type?>

Shipping method: <?=$order->shipping_method?>
	

You will receive a shipment notification email message as soon as we send your order. 
 
If we may be of further assistance, please contact us at custserv@nanhai.com or 650-259-2100.
 
Sincerely,
nanhai.com Customer Service	
</pre>
</body></html>